/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package skat.decks;

import rlpw.lang.Factory;

/**
 *
 * @author Ronny
 */
public abstract class Deck {

    protected String[] suitsLong;
    protected String[] ranksLong;
    protected String[] suitsShort;
    protected String[] rankssShort;

    public String getShortName(int c, int v) {
        return suitsShort[c] + "-" + rankssShort[v];
    }

    public String getLongName(int c, int v) {
        return suitsLong[c] + " " + ranksLong[v];
    }

    public int suitCount() {
        return suitsLong.length;
    }

    public int rankCount() {
        return ranksLong.length;
    }

    public static Deck make() throws Exception {
        return Factory.make(Deck.class);
    }

    public static Deck make(String name) throws Exception {
        return Factory.make(Deck.class, name);
    }
}
